var mongoose = require('mongoose');
    materializedPlugin = require('mongoose-materialized');

var schema = new mongoose.Schema({
	text:{type:String},

	data:{type:Date,default:Date.now}
});

schema.plugin(materializedPlugin);

var Cate = mongoose.model('Cate',schema,'cate')
module.exports = Cate;
 

 
// var mongoose = require('mongoose');
// materializedPlugin = require('mongoose-materialized'),
// Schema = mongoose.Schema;

// // 定义一个普通的数据模型 
// var CateSchema = new Schema({
//     text:{type:String}
// });
// // 将数据模型应用分页插件
// CateSchema.plugin(materializedPlugin);
// module.exports = mongoose.model('Cate', CateSchema,'cate');
